using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._3DAnalystTools._TriangulatedSurface
{
    /// <summary>
    /// <para>Surface Aspect</para>
    /// <para>Creates polygon features that represent aspect measurements derived  from a TIN, terrain, or LAS dataset surface.</para>
    /// <para>创建表示从 TIN、terrain 或 LAS 数据集表面派生的坡向测量值的面要素。</para>
    /// </summary>    
    [DisplayName("Surface Aspect")]
    public class SurfaceAspect : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public SurfaceAspect()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_surface">
        /// <para>Input Surface</para>
        /// <para>The TIN, terrain, or LAS dataset surface to process.</para>
        /// <para>要处理的 TIN、terrain 或 LAS 数据集表面。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// </param>
        public SurfaceAspect(object _in_surface, object _out_feature_class)
        {
            this._in_surface = _in_surface;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "3D Analyst Tools";

        public override string ToolName => "Surface Aspect";

        public override string CallName => "3d.SurfaceAspect";

        public override List<string> AcceptEnvironments => ["XYDomain", "XYResolution", "XYTolerance", "autoCommit", "configKeyword", "extent", "geographicTransformations", "outputCoordinateSystem", "terrainMemoryUsage", "workspace"];

        public override object[] ParameterInfo => [_in_surface, _out_feature_class, _class_breaks_table, _aspect_field, _pyramid_level_resolution];

        /// <summary>
        /// <para>Input Surface</para>
        /// <para>The TIN, terrain, or LAS dataset surface to process.</para>
        /// <para>要处理的 TIN、terrain 或 LAS 数据集表面。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Surface")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_surface { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The feature class that will be produced.</para>
        /// <para>将生成的要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        /// <summary>
        /// <para>Class Breaks Table</para>
        /// <para>A table containing the classification breaks that will be used to define the aspect ranges in the output feature class.</para>
        /// <para>包含分类中断的表，该分类中断将用于定义输出要素类中的纵横比范围。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Class Breaks Table")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _class_breaks_table { get; set; } = null;


        /// <summary>
        /// <para>Aspect Field</para>
        /// <para>The field containing aspect code values.</para>
        /// <para>包含方面代码值的字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Aspect Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _aspect_field { get; set; } = null;


        /// <summary>
        /// <para>Pyramid Level Resolution</para>
        /// <para>The z-tolerance or window-size resolution of the terrain pyramid level that will be used. The default is 0, or full resolution.</para>
        /// <para>将使用的地形金字塔级别的 z 容差或窗口大小分辨率。默认值为 0，即全分辨率。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Pyramid Level Resolution")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _pyramid_level_resolution { get; set; } = 0;


        public SurfaceAspect SetEnv(object XYDomain = null, object XYResolution = null, object XYTolerance = null, int? autoCommit = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object outputCoordinateSystem = null, object terrainMemoryUsage = null, object workspace = null)
        {
            base.SetEnv(XYDomain: XYDomain, XYResolution: XYResolution, XYTolerance: XYTolerance, autoCommit: autoCommit, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, outputCoordinateSystem: outputCoordinateSystem, terrainMemoryUsage: terrainMemoryUsage, workspace: workspace);
            return this;
        }

    }

}